package com.spark.incoicings.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spark.incoicings.dao.*;
import com.spark.incoicings.service.DeliveryOrderService;
import com.spark.invoicings.entity.*;
import com.spark.invoicings.utils.Result;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.concurrent.TimeUnit;
import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;


@Service
public class DeliveryOrderServiceImpl extends ServiceImpl<DeliveryOrderMapper, DeliveryOrder> implements DeliveryOrderService {

    @Resource
    private DeliveryOrderMapper deliveryOrderMapper;

    @Override
    public Result selectDeliveryOrder() {
        List<DeliveryOrder> data = deliveryOrderMapper.selectDeliveryOrder();
        return Result.success(200, "success", data);
    }
}
